﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    enum TaskType
    {
        /// <summary>
        /// 送信npc
        /// </summary>
        送信的,
        /// <summary>
        /// 杀怪npc
        /// </summary>
        杀怪的,
        /// <summary>
        /// 采集npc
        /// </summary>
        采集的
    }
    class TaskNpc:Npc
    {
        private string taskInfo;
        private TaskType taskType;
        private string TaskInfo;

        public TaskNpc(string name, NpcType type, string taskInfo, TaskType taskType, string TaskInfo) : base(name, type)
        {
            this.taskInfo = taskInfo;
            this.taskType = taskType;
            this.TaskInfo = TaskInfo;
        }
        public override void Speak()
        {
            Console.WriteLine("NPC:{0}，任务是：{1},我是负责：{2}，ps：{3}", base.Name, this.taskInfo, this.taskType, this.TaskInfo);
            Console.WriteLine("-------------------------------");
        }
    }
}
